class MovieHouse < ActiveRecord::Base
  validates_presence_of :name, :seat_quantity, :movie_house_state
  validates_numericality_of :seat_quantity
  
  def movie_house_state_judge
    
  end
  protected
  def validate
    error.add(:seat_quantity, "should be at least 1") if seat_quantity.nil? || seat_quantity < 1
  end
end
